package Teamdomain;

/**
 * @program: Demo2
 * @description:
 * @author: yan guang
 * @create: 2020-04-22 10:00
 */
public class Architect extends Designer{
    private int stock;

    public Architect(int id, String name, int age, double salary, double bonus,int stock, Equipment equipment) {
        super(id, name, age, salary, bonus, equipment);
        this.stock=stock;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    @Override
    public String toString() {
        return Detil()+getEquipment()+getStatus()+getBonus()+stock;
    }
}
